//
//  FPAnalysisHeader.m
//  FilmParadise
//
//  Created by lanou3g on 15/7/15.
//  Copyright (c) 2015年 DLYgroup. All rights reserved.
//

#import "FPAnalysisHeader.h"

#define kHeaderURL @"http://api.m.mtime.cn/PageSubArea/GetRecommendationIndexInfo.api"
@implementation FPAnalysisHeader

+ (NSDictionary *)analysisHeaderViewDataWithKey:(NSString *)key
{
    __block NSDictionary *dic1 = nil;
    if (![[FPNetWork shareInstance]rechability])
    {
        UIAlertView *aler = [[UIAlertView alloc]initWithTitle:nil message:@"无网络" delegate:self cancelButtonTitle:@"取消" otherButtonTitles:nil, nil];
        [aler show];
    }
    [LORequestManger GET:kHeaderURL success:^(id response) {
        NSDictionary *dic = (NSDictionary *)response;
        NSLog(@"%@",dic1);
        dic1 = dic;
    } failure:^(AFHTTPRequestOperation *operation, NSError *error) {
        NSLog(@"请求数据失败");
    }];
    return dic1;
}

@end
